<?php

namespace App\Http\Controllers;

use App\Models\Products;
use Illuminate\Http\Request;

class CategoryController extends Controller
{
    public function categoryPage($cateid){
        $cateproducts = Products::where('procategory_id','=',$cateid)->get();
        return view('categorypage',['cateproducts'=>$cateproducts]);
    }
}
